{{Strip}}
{{- $pjax := $.Form "_pjax" -}}
{{if $pjax}}<title>{{Block "title"}}Start{{/Block}} - {{Version}}</title>
	{{- if eq $pjax "#main-container" -}}
		{{Block "head"}}{{/Block}}
		{{Block "headEnd"}}{{/Block}}
		{{Block "bodyNav"}}{{/Block}}
		<div class="container-fluid" id="pcont">
			{{- if hasAnyBlock "name" "breadcrumb" -}}
			<div class="page-head">
				{{if hasAnyBlock "name"}}<h2>{{Block "name"}}{{/Block}}</h2>{{end}}
				<ol class="breadcrumb">
				  {{Block "breadcrumb"}}
				  <li><a href="{{BackendURL}}/index" data-pjax="#main-container" data-keepjs="true">Home</a></li>
				  {{/Block}}
				</ol>
			</div>
			{{- end -}}
		    <div class="cl-mcont">{{Block "main"}}{{/Block}}</div>
		</div><!-- #pcont -->
		{{Block "footer"}}{{/Block}}
	{{- else if eq $pjax "#pcont" -}}
		{{Block "head"}}{{/Block}}
		{{Block "headEnd"}}{{/Block}}
		{{- if hasAnyBlock "name" "breadcrumb" -}}
		<div class="page-head">
			{{if hasAnyBlock "name"}}<h2>{{Block "name"}}{{/Block}}</h2>{{end}}
			<ol class="breadcrumb">
			  {{Block "breadcrumb"}}
			  <li><a href="{{BackendURL}}/index" data-pjax="#main-container" data-keepjs="true">Home</a></li>
			  <!-- <li class="active">Current</li> -->
			  {{/Block}}
			</ol>
		</div>
		{{- end -}}
		<div class="cl-mcont">{{Block "main"}}{{/Block}}</div>
		{{Block "footer"}}{{/Block}}
	{{- else -}}
		{{Block "head"}}{{/Block}}
		{{Block "headEnd"}}{{/Block}}
		{{Block "main"}}{{/Block}}
		{{Block "footer"}}{{/Block}}
	{{- end -}}
{{- else -}}
<!DOCTYPE html>{{$themeColor := $.ThemeColor}}
<html lang="{{$.Lang.Normalize}}"{{if eq $themeColor `dark`}} class="dark-theme"{{end}}>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="{{Version.Name}}{{`管理面板`|$.T}}">
	<meta name="buildTime" content="{{BuildTime}}">
	<meta name="commitID" content="{{CommitID}}">
	<meta name="robots" content="noindex,nofollow">
	<meta name="theme-color" content="{{Block `themeColor`}}#2494F2{{/Block}}" />
	<link rel="shortcut icon" type="image/x-icon" href="{{$.RootPrefix}}/favicon.ico">
	<title>{{Block "title"}}Start{{/Block}} - {{Version}}</title>
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" href="{{AssetsURL}}/js/bootstrap/dist/css/bootstrap.lite.min.css?t={{BuildTime}}" />
	<link rel="stylesheet" href="{{AssetsURL}}/js/jquery.gritter/css/jquery.gritter.min.css?t={{BuildTime}}" />
	<link rel="stylesheet" href="{{AssetsURL}}/js/jquery.gritter/css/custom.min.css?t={{BuildTime}}" />
  <link rel="stylesheet" href="{{AssetsURL}}/js/jquery.nanoscroller/nanoscroller.css?t={{BuildTime}}" />
  <link rel="stylesheet" href="{{AssetsURL}}/js/bootstrap.switch/bootstrap-switch.min.css?t={{BuildTime}}" />
	<link rel="stylesheet" href="{{AssetsURL}}/js/jquery.niftymodals/css/component.min.css?t={{BuildTime}}" />
	<link rel="stylesheet" href="{{AssetsURL}}/js/bootstrap.typeahead/typeahead.css?t={{BuildTime}}" />
	<link rel="stylesheet" href="{{AssetsURL}}/css/form/checkbox.min.css?t={{BuildTime}}" />
	{{Include "global_js"}}
	{{- $.Render (call $.Func.GlobalHeads) -}}
    {{Block "head"}}{{/Block}}
	<link id="css-lazyload-end" rel="stylesheet" href="{{AssetsURL}}/css/reset.css?t={{BuildTime}}" />
	<!-- Custom styles for this template -->
	<link href="{{AssetsURL}}/css/style.lite.min.css?t={{BuildTime}}" rel="stylesheet" />
	{{- if eq $themeColor `dark` -}}
	<link href="{{AssetsURL}}/css/dark.min.css?t={{BuildTime}}" rel="stylesheet" />
	{{- end -}}
    {{Block "headEnd"}}{{/Block}}
</head>
 
<body{{Block "bodyAttr"}}{{/Block}}>
    {{Include "header"}}
	<div id="cl-wrapper">
		{{Include "sidebar"}}
		<div class="cl-body">
		<div id="main-container">
		{{Block "bodyNav"}}{{/Block}}
		<div class="container-fluid" id="pcont">
			{{if hasAnyBlock "name" "breadcrumb"}}
			<div class="page-head">
				{{if hasAnyBlock "name"}}<h2>{{Block "name"}}{{/Block}}</h2>{{end}}
				<ol class="breadcrumb">
				  {{Block "breadcrumb"}}
				  <li><a href="{{BackendURL}}/index" data-pjax="#main-container" data-keepjs="true">Home</a></li>
				  <!-- <li class="active">Current</li> -->
				  {{/Block}}
				</ol>
			</div>
			{{end}}
		    <div class="cl-mcont{{if hasAnyBlock "bodyClass"}} {{Block "bodyClass"}}{{/Block}}{{end}}">{{Block "main"}}{{/Block}}</div>
		</div><!-- #pcont -->
		</div><!-- #main-container -->
		</div><!-- .cl-right -->
	</div><!-- #cl-wrapper -->
{{/*<!-- <script src="{{AssetsURL}}/js/require.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/main.js?t={{BuildTime}}"></script> -->*/}}
<!-- <script src="{{AssetsURL}}/js/jquery.js?t={{BuildTime}}"></script> -->
<script src="{{AssetsURL}}/js/compatible.min.js?t={{BuildTime}}" type="text/javascript"></script>
<script src="{{AssetsURL}}/js/jquery3.6.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/jquery.migrate3.4.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/modernizr.js?t={{BuildTime}}" type="text/javascript"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.nanoscroller/jquery.nanoscroller.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/bootstrap.switch/bootstrap-switch.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.pjax.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.niftymodals/js/jquery.modalEffects.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/behaviour/sprintf.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/behaviour/general.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.gritter/js/jquery.gritter.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/bootstrap/dist/js/bootstrap.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/storeWithJson2.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/bootstrap.typeahead/typeahead.bundle.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{BackendURL}}/i18n/i18n.js?t={{BuildTime}}&lng={{$.Lang.Normalize}}" charset="utf-8"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.parsley/parsley.min.js?t={{BuildTime}}"></script>
<script type="text/javascript" src="{{AssetsURL}}/js/jquery.parsley/i18n/{{$.Lang}}.js?t={{BuildTime}}" charset="utf-8"></script>
{{Block "importJS"}}{{/Block}}
{{Include "init_js"}}
{{call $.Func.Modal "__TMPL__/manager/upgrade.yaml"}}
<script type="text/javascript" src="{{AssetsURL}}/js/behaviour/page/footer.min.js?t={{BuildTime}}"></script>
{{- $.Render (call $.Func.GlobalFooters) -}}
{{Block "footer"}}{{/Block}}
<div id="loading-status"><i class="fa fa-spinner fa-spin fa-3x"></i></div>
{{TrackerHTML}}
</body>
</html>
{{- end -}}
{{/Strip}}